/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.borrowlist.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fuyao.cloud.asset.entity.borrow.Borrow;
import com.fuyao.cloud.asset.entity.borrow.BorrowList;

import java.util.List;

/**
 * 归还&借有明细表
 *
 * @author ly
 * @date 2022-01-06 10:39:03
 */
public interface BorrowListService extends IService<BorrowList> {

	/**
	 * 保存借用明细
	 * @param entity 借用对象
	 */
	void saveOrUpdateBorrowList(Borrow entity);

	/**
	 * 根据父级id查询明细信息
	 * @param borrowIds 借用ids
	 * @return 借用资产明细
	 */
	List<BorrowList> listParentId(List<Long> borrowIds);
}
